
import { Notify,Toast,NotifyType } from 'vant';

export function msgFn(message:string, type?:NotifyType ) {
    type = type || 'danger';
    Notify({ message, type ,'duration':2000});
}

export function showLoading() {
    Toast.loading({
        'message': '头像上传中...',
        'forbidClick': true,
        'duration': 0,
        'loadingType': 'spinner'
    });
    return Toast;
}